gempy.create_geomodel

gempy.create_geomodel(*, project_name: str = 'default_project', extent: list | ndarray = None, resolution: list | ndarray = None, refinement: int = 1, structural_frame: StructuralFrame = None, importer_helper: ImporterHelper = None, intpolation_options_tye: InterpolationOptionsType = InterpolationOptionsType.OCTREE, **kwargs) GeoModel[source]

Creates a geological model based on input parameters, spatial configuration, and interpolation options.

This function initializes a geological model by defining the grid (dense grid or octree-based), selecting interpolation options based on the desired type, and configuring the structural frame using either a provided structural frame or an importer helper instance. The geological model is tailored for specific project-based requirements and can be either dense or with variable resolution depending on the refinement level.

Parameters:
  • project_name (str) – Name of the geological model project. Defaults to ‘default_project’.

  • extent (list, ndarray) – Spatial extent of the geological model in the form of [min_x, max_x, min_y, max_y, min_z, max_z].

  • resolution (list, ndarray) – Resolution of the model grid in the form [x_res, y_res, z_res]. If not provided, the function will default to octree initialization.

  • refinement (int) – Refinement level for the octree grid. Ignored if resolution is provided. Defaults to 1.

  • structural_frame (StructuralFrame) – Pre-configured instance of StructuralFrame for the geological model. If not provided, an importer_helper must be supplied.

  • importer_helper (ImporterHelper) – Helper object for initializing a structural frame if none is explicitly provided.

  • intpolation_options_tye (InterpolationOptionsType) – Enum representing the desired type of interpolation options. Defaults to InterpolationOptionsType.OCTREE.

Returns:

An initialized geological model with specified spatial configuration and interpolation properties.

Return type:

GeoModel

Raises:
  • ValueError – If neither structural_frame nor importer_helper is provided.

  • ValueError – If the interpolation options type is unrecognized.

Examples using gempy.create_geomodel

Video Tutorial “code-along”: Modeling step by step

Video Tutorial "code-along": Modeling step by step

Video Tutorial “code-along”: Faults

Video Tutorial "code-along": Faults

Video Tutorial “code-along”: Onlap relations

Video Tutorial "code-along": Onlap relations

Basics: Data Classes and Modeling API

Basics: Data Classes and Modeling API

Building a Model from Scratch

Building a Model from Scratch

Grids: Regular, Octree, and Custom

Grids: Regular, Octree, and Custom

2D Visualization: Sections and Custom Plots

2D Visualization: Sections and Custom Plots

3D Visualization: Interactive Model and Custom Plots

3D Visualization: Interactive Model and Custom Plots

Forward Gravity Modeling

Forward Gravity Modeling

Populating a Structural Model with Properties

Populating a Structural Model with Properties

Analyzing Geomodel Topology

Analyzing Geomodel Topology

Model 1 - Horizontal Stratigraphy

Model 1 - Horizontal Stratigraphy

Model 2 - Anticline

Model 2 - Anticline

Model 3 - Recumbent Fold

Model 3 - Recumbent Fold

Model 4 - Pinchout

Model 4 - Pinchout

Model 5 - Fault

Model 5 - Fault

Model 6 - Unconformity

Model 6 - Unconformity

Model 7 - Combination

Model 7 - Combination

Set of more complex examples

Set of more complex examples

Alès Basin, France

Alès Basin, France

Claudius, Queensland, Australia

Claudius, Queensland, Australia

Sandstone Greenstone Belt, Western Australia

Sandstone Greenstone Belt, Western Australia

Hecho, Spanish Pyrenees

Hecho, Spanish Pyrenees

Mourèze, France

Mourèze, France

Perth Basin, Western Australia

Perth Basin, Western Australia